package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.exception.MenuException;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;

import java.util.List;

public interface MenuService {
    List<Menu> findAll();

    Integer[] findMenuIdsByRoleId(Integer id);

    PageResult findPage(QueryPageBean queryPageBean);

    Integer findLevelById(Integer id);

    void add(Menu menu);

    void edit(Menu menu) throws MenuException;

    void delete(Integer id);
}
